package com.haierp.task;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.haierp.util.DimensionCodeUtil;

/**
 * 文件上传
 * @author 鲍寅磊
 */
@Component
public class AutoGetAccessTokenTask {
	protected Logger logger = LogManager.getLogger(getClass());
	
	@Scheduled(cron = "0 0 0 */3 * ?")
    public void getAccessToken() {
		logger.error("获取有赞tocken");
    	DimensionCodeUtil.getYouZanToken();
    }
}
